package wodegua.d31_java高级.d4_proxy2;

public class UserServiceImpl implements UserService {

    @Override
    public String login(String username, String password) throws Exception {
        System.out.println("登录成功");
        Thread.sleep(1000);
        return username;
    }

    @Override
    public String deleteUser(String username) throws Exception {
        System.out.println("删除用户成功");
        Thread.sleep(1500);
        return username;
    }

    @Override
    public String[] selectUser() throws Exception {
        System.out.println("查询用户成功");
        String[] name = {"张三","李四","王五"};
        Thread.sleep(1500);
        return name;
    }
}
